package com.example.sprintbootarithmetic.DataStructure.stack;

public class StackHeroNodeDemo {
    public static void main(String[] args) {
        HeroNode hero1 = new HeroNode(1, "宋江", "及时雨");
        HeroNode hero2 = new HeroNode(2, "卢俊义", "玉麒麟");
        HeroNode hero3 = new HeroNode(3, "吴用", "智多星");
        HeroNode hero4 = new HeroNode(4, "林冲", "豹子头");
        HeroNode hero5 = new HeroNode(5, "李逵", "黑旋风");
        HeroNode hero16 = new HeroNode(6, "广生", "麻雀");
        HeroNode hero17 = new HeroNode(7, "缇娜7", "月光7");
        HeroNode hero18 = new HeroNode(8, "缇娜8", "月光8");
        HeroNode hero19 = new HeroNode(9, "缇娜9", "月光9");
        HeroNode hero20 = new HeroNode(10, "缇娜10", "月光10");
        StackHeroNode stackHeroNode = new StackHeroNode();
        stackHeroNode.Stackpush(hero1);
        stackHeroNode.Stackpush(hero2);
        stackHeroNode.Stackpush(hero3);
        stackHeroNode.Stackpush(hero4);
        stackHeroNode.Stackpush(hero5);
       /* stackHeroNode.Stackpop();
        stackHeroNode.Stackpop();
        stackHeroNode.Stackpop();
        stackHeroNode.Stackpop();
        stackHeroNode.Stackpop();
        stackHeroNode.Stackpop();*/
        stackHeroNode.Stackall();
    }
}
